package com.cms.common.util;


import org.springframework.core.convert.converter.Converter;

import com.cms.common.kit.StrKit;

public class IntegerConverter implements Converter<String,Integer>{

	@Override
	public Integer convert(String text) {
		if (StrKit.isBlank(text))return 0;
		try {
			return Integer.parseInt(text);
		} catch (Exception e) {
			// TODO: handle exception
		}
		return 0;
	}

}
